<%@ include file="/common/taglibs.jsp"%>
<probiz:pageHeading pageHeadingKey="orderDeliveryList.heading" />

<content tag="buttons">
	<probiz:iconBtn btnType="add" onclick="return fnDoAdd(this);" />
	<!--<probiz:iconBtn btnType="save" onclick="return fnDoMultiSave(this);" />-->
	<probiz:iconBtn btnType="delete" onclick="return fnDoMultiDelete(this);" />
</content>
<search:searchBox formAction="${ctxPath}/order/orderDelivery.html" enableMoreSearch="false">
	<div class="basic_search">
		<search:basicSearch attrPath="s.orderDeliveryName" attrNameKey="orderDelivery.orderDeliveryName" datatype="String" operator="LIKE" classes="inputtxt" labelWidth="80px"/>
	</div>
	<%--
	<div class="more_search">
		<table border="0" cellspacing="0" cellpadding="0" class="search_table">
			<search:input attrPath="s.orderDeliveryName" attrNameKey="orderDelivery.orderDeliveryName" datatype="String" operator="LIKE" classes="inputtxt" style="width:150px" labelWidth="80px"/>
		</table>
	</div>
	--%>
</search:searchBox>

<form class="mainForm" name="orderDeliveryListForm" method="post">
	<!--editURLPath is used in TblDecorator-->
	<c:set var="editURLPath" value="/order/orderDelivery.html?doAction=edit&from=list" scope="page" />
	<div class="top clearfix">
		<ul class="tab">
			<li class="curr"><span><fmt:message key="orderDeliveryList.heading"/></span></li>
		</ul>
		<%@include file="/common/pagingOnlyTop.jsp"%>
	</div>
	<div class="data">
	<c:set var="checkAll"><input type="checkbox" name="allbox" onclick="checkAll(this.form)" class="checkbox"/></c:set>
	<display:table name="${orderDeliveryList}" cellspacing="0" cellpadding="0" uid="orderDeliveryItem" class="list_table" export="false" requestURI="" style="width:100%">
		<display:column style="width: 1%;" class="checkbox_column" title="${checkAll}" media="html">
			<input type="checkbox" name="multiIds" value="${orderDeliveryItem.orderDeliveryId}" class="checkbox" title="${orderDeliveryItem.orderDeliveryName}"/>
		</display:column>
		<display:column style="width: 10%;" sortable="true" url="${editURLPath}" paramId="orderDeliveryId" paramProperty="orderDeliveryId"
			decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="orderDelivery.orderDeliveryName">
			${orderDeliveryItem.orderDeliveryName}
		</display:column>
	    
	    <display:column style="width: 10%;" property="shipperName" sortable="true" headerClass="data-table-title"
    		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="orderDelivery.shipperName"/>
	       
	    <display:column  property="regionFullName" sortable="true" headerClass="data-table-title"
    		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="orderDelivery.regionFullName"/>
	    <display:column style="width: 20%;" property="address" sortable="true" headerClass="data-table-title"
    		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="orderDelivery.address"/>
	    <display:column style="width: 10%;" property="mobilephone" sortable="true" headerClass="data-table-title"
    		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="orderDelivery.mobilephone"/>
	    <display:column style="width: 5%;" property="sortOrder" sortable="true" headerClass="data-table-title"
    		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="orderDelivery.sortOrder"/>
	    <display:column style="width: 7%;" sortable="true" headerClass="data-table-title"
    		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="orderDelivery.isDefault">
    		<c:choose>
    			<c:when test="${orderDeliveryItem.isDefault=='1'}">
    				<fmt:message key="common.message.yes"/>
    			</c:when>
    			<c:otherwise>
    				<fmt:message key="common.message.no"/>
    			</c:otherwise>
    		</c:choose>
    	</display:column>
	    <display:column style="width: 5%;" sortable="true" headerClass="data-table-title"
    		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="orderDelivery.status">
    		<c:choose>
    			<c:when test="${orderDeliveryItem.status=='1'}">
    				<fmt:message key="status.active"/>
    			</c:when>
    			<c:otherwise>
    				<fmt:message key="status.disable"/>
    			</c:otherwise>
    		</c:choose>
    	</display:column>
	</display:table>
	<%@include file="/common/pagingOnly.jsp"%>
	</div>
</form>
<script type="text/javascript">
	highlightTableRows("orderDeliveryItem");
</script>